package com.example.easyexcel.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.converters.date.DateStringConverter;
import com.alibaba.excel.converters.longconverter.LongStringConverter;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName archive
 */
@TableName(value = "archive")
@Data
@ExcelIgnoreUnannotated
@ColumnWidth(16)
@HeadRowHeight(14)
@HeadFontStyle(fontHeightInPoints = 11)
public class Archive implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", converter = LongStringConverter.class)
    private Long id;

    @ExcelProperty(value = "档案号")
    private String dh;

    @ExcelProperty(value = "题名")
    private String tm;

    @ExcelProperty(value = "注册位置")
    private String ccwz;

    @ExcelProperty(value = "年份")
    private String nf;

    @ExcelProperty(value = "保管人")
    private String bgr;

    @ExcelProperty(value = "全宗号")
    private String qzh;

    @ExcelProperty(value = "标签号")
    private String tagCode;

    @ExcelProperty(value = "保管期限")
    private String bgqx;

    @ExcelProperty(value = "创建时间", converter = DateStringConverter.class)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ExcelProperty(value = "更新时间", converter = DateStringConverter.class)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ExcelProperty(value = "创建人")
    private String createBy;

    @ExcelProperty(value = "更新人")
    private String updateBy;

    @TableLogic
    private String delFlag;

}